package model;

import java.text.SimpleDateFormat;
import java.util.Date;

public class q {
    public String idQA;
    public String question;
    public String questionerId;
    public String questionTime;
    public String questionContext;

    public q() {
        super();
    }

    public q(String question, String questionerId, String questionContext) {
        super();
        this.question = question;
        this.questionerId = questionerId;
        this.questionContext = questionContext;
        Date date = new Date();
        long times = date.getTime();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.questionTime = formatter.format(date);
    }

    public q(String idQA,String question, String questionerId, String questionTime, String questionContext){
        super();
        this.idQA = idQA;
        this.question = question;
        this.questionerId = questionerId;
        this.questionTime = questionTime;
        this.questionContext = questionContext;
    }

    public String getIdQA() {
        return idQA;
    }

    public void setIdQA(String idQA) {
        this.idQA = idQA;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getQuestionerId() {
        return questionerId;
    }

    public void setQuestionerId(String questionerId) {
        this.questionerId = questionerId;
    }

    public String getQuestionTime() {
        return questionTime;
    }

    public void setQuestionTime(String questionTime) {
        this.questionTime = questionTime;
    }

    public String getQuestionContext() { return questionContext; }

    public void setQuestionContext(String questionContext) { this.questionContext = questionContext; }

}
